package hx.com.entity;

import java.io.Serializable;

/***********************************************************************
 * Module:  TalkPackage.java
 * Author:  Wys  2019/1/2
 * Purpose: Defines the Class TalkPackage
 ***********************************************************************/


public class TalkPackage extends ServicePackage implements Serializable {


   private static final long serialVersionUID = -49047754778110536L;
   private int talkTime;

   private int sumsCount;


   public TalkPackage(double price) {
      super(price);
   }

   public TalkPackage() {
      super(58);
      this.talkTime=500;
      this.sumsCount=30;
   }


   public int getTalkTime() {
      return talkTime;
   }


   public int getSumsCount() {
      return sumsCount;
   }


   @Override
   public void show() {
      System.out.println("套餐名字："+"\t"+"话痨套餐");
      System.out.println("通话时长（分钟）："+"\t"+this.getTalkTime());
      System.out.println("上网流量（GB）："+"\t"+"无");
      System.out.println("短信条数："+"\t"+this.getSumsCount());
      System.out.println("资费（元/月）："+"\t"+super.getPrice());

   }



   public void showInfo() {
      System.out.println("通话时长："+getTalkTime()+"分钟");
      System.out.println("短信条数："+getSumsCount()+"分钟");
      System.out.println("上网流量："+"0"+"GB");
   }
   
   /** @param minCount 
    * @param MobileCard
     */
   public void call(int minCount, MobileCard MobileCard) {
      // TODO: implement
   }
   
   /** @param count 
    * @param card
    */
   public void send(int count, MobileCard card) {
      // TODO: implement
   }

}